package com.ruoyi.project.mgcmanage.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class MedFactory extends BaseEntity {
    private Integer id;
    private String factoryName;
    private int factoryId;
    private String factoryPeople;
    private String factoryPhone;
    private String factoryKeyword;
    private String  status;


    public MedFactory() {
    }

    public MedFactory(Integer id, String factoryName, int factoryId, String factoryPeople, String factoryPhone, String factoryKeyword, String status) {
        this.id = id;
        this.factoryName = factoryName;
        this.factoryId = factoryId;
        this.factoryPeople = factoryPeople;
        this.factoryPhone = factoryPhone;
        this.factoryKeyword = factoryKeyword;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public int getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(int factoryId) {
        this.factoryId = factoryId;
    }

    public String getFactoryPeople() {
        return factoryPeople;
    }

    public void setFactoryPeople(String factoryPeople) {
        this.factoryPeople = factoryPeople;
    }

    public String getFactoryPhone() {
        return factoryPhone;
    }

    public void setFactoryPhone(String factoryPhone) {
        this.factoryPhone = factoryPhone;
    }

    public String getFactoryKeyword() {
        return factoryKeyword;
    }

    public void setFactoryKeyword(String factoryKeyword) {
        this.factoryKeyword = factoryKeyword;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MedFactory that = (MedFactory) o;
        return id == that.id &&
                factoryId == that.factoryId &&
                Objects.equals(factoryName, that.factoryName) &&
                Objects.equals(factoryPeople, that.factoryPeople) &&
                Objects.equals(factoryPhone, that.factoryPhone) &&
                Objects.equals(factoryKeyword, that.factoryKeyword) &&
                Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, factoryName, factoryId, factoryPeople, factoryPhone, factoryKeyword, status);
    }

    @Override
    public String toString() {
        return "MedFactory{" +
                "id=" + id +
                ", factoryName='" + factoryName + '\'' +
                ", factoryId=" + factoryId +
                ", factoryPeople='" + factoryPeople + '\'' +
                ", factoryPhone='" + factoryPhone + '\'' +
                ", factoryKeyword='" + factoryKeyword + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
